package com.cms.manage.util;



import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * @author yinrenjie
 * @date 2021-05-13 17:27
 * @description
 */
public class SessionUtil {
   

    public static void set(HttpServletRequest request, String key, Object value) {
        HttpSession session = request.getSession();
        session.setAttribute(key, value);
      
    }

    public static Object get(HttpServletRequest request, String key) {
        HttpSession session = request.getSession();
        Object value = session.getAttribute(key);
       
        return value;
    }

    public static Object remove(HttpServletRequest request, String key) {
        HttpSession session = request.getSession();
        Object value = session.getAttribute(key);
       
        return value;
    }
}
